package com.xcx.commoncore.request.logrequest;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;


@Data
public class RegisterRequest {


    @ApiModelProperty(name = "username", value = "用户名称;用户名称保存openid", required = false, example = "o1R-t5u2TfEVeVjO9CPGdHPNw-to")
    private String username;

    @ApiModelProperty(name = "appid", value = "用户appid", required = false, example = "id12312231312")
    private String appid;

    @ApiModelProperty(name = "mobile", value = "手机号码", required = false, example = "18751196233")
    private String mobile;

    @ApiModelProperty(name = "registerType", value = "注册/1微信注册，2手机账号密码注册", required = true, example = "1")
    @Min(value = 0)
    private Integer registerType;

    @ApiModelProperty(name = "password", value = "密码",required = false)
    private String password;

    @ApiModelProperty(name = "nickName",value = "昵称;昵称",required = false)
    private String nickName;

    @ApiModelProperty(name = "birthday",value = "出生年月",required = false)
    private String birthday;


    @ApiModelProperty(name = "sex",value = "性别;性别1男，0是女",required = true,example = "1")
    @Min(value = 0)
    private Integer sex;

    @ApiModelProperty(name = "age",value = "年龄;年龄",required = true,example = "18")
    @Min(value = 0)
    private Integer age;

    @ApiModelProperty(name = "salary", value = "收入1.3000,2.30001~5000,3.5001~8000,4.8001~12000,5.12001~20000,6.20001以上", required = true, example = "1")
    private Integer salary;

    @ApiModelProperty(name = "cit", value = "城市;城市", required = true, example = "张家港市")
    @NotBlank(message = "请选择城市")
    private String cit;

    @ApiModelProperty(name = "height", value = "身高", required = true, example = "175cm")
    @NotBlank(message = "请输入身高")
    private String height;


    @ApiModelProperty(name = "weight", value = "体重", required = false, example = "65kg")
    private String weight;

    @ApiModelProperty(name = "maritalStatus", value = "婚姻状态1未婚2.离异3丧偶", required = true, example = "1")
    @Min(value = 0)
    private Integer maritalStatus;

    @ApiModelProperty(name = "profession", value = "学历,1高中及以下，2中专，3大专，4本科，5硕士，6.博士", required = true, example = "1")
    private Integer profession;

    @ApiModelProperty(name = "district", value = "市;市", required = true, example = "苏州市")
    @NotBlank(message = "请输入市级信息")
    private String district;

    @ApiModelProperty(name = "villages", value = "乡村;乡村", required = true, example = "金港镇")
    @NotBlank(message = "请输入乡镇信息")
    private String villages;

    @ApiModelProperty(name = "provin", value = "省份;省份", required = false, example = "江苏省")
    private String provin;

    @ApiModelProperty(name = "userAddress", value = "详细地址", required = false)
    private String userAddress;

    @ApiModelProperty(name = "isDisabled", value = "是否禁用;是否禁用1禁用，0未禁用", example = "0")
    private Integer isDisabled;


}
